/*
 * CommunicationRobot12.h
 *
 *  Created on: 15/11/2013
 *      Author: gonzalo
 */

#ifndef COMMUNICATIONROBOT12_H_
#define COMMUNICATIONROBOT12_H_

typedef bool Robot12Listo;

#include <iostream>
#include "../IPC/SharedMemoryInterface.h"
#include "CommunicationRobotPiezas.h"

namespace middleware {

class CommunicationRobot12 : public CommunicationRobotPiezas{
public:
	CommunicationRobot12(char key);
	virtual ~CommunicationRobot12();
	bool estaListo();
	void setProcesando();
	void setListo();
	virtual std::string getNombre();
	static void create(char key);
	static void destroy(char key);
private:
	ipc::SharedMemoryInterface<Robot12Listo> shMemListo;
	static const std::string ROBOT12_SEM_PATH;
	static const std::string ROBOT12_SHMEM_PATH;
};

} /* namespace middleware */
#endif /* COMMUNICATIONROBOT12_H_ */
